{template "content","header"}
<!--main-->
<div class="daoshi_menu">
{loop $categorys $v $r}
	{if $r[child]}
			<span>　</span><span {if $r[catid]==$catid}class="cur2"{/if}><a href="{APP_PATH}?m=daoshi&c=index&catid={$r[catid]}">{$r[catname]}</a></span><span>　|</span>
     {/if}
{/loop}
</div>

<div class="main">

<!-- the tabs -->

<ul class="tabs">
{if $categorys[$catid]}
{loop $categorys $v1 $r1}
	   {if $r1[parentid]==$catid || $r1[parentid]==$top_parentid}
          <li><a href="tab{$r1[catid]}" tab{$r1[catid]}><span>{$r1[catname]}</span></a></li>
       {/if}
{/loop}
{/if}
</ul>

<!-- tab "panes" -->

<div class="panes">
  {loop $categorys $v1 $r1}
      {if $r1[parentid]==$catid || $r1[parentid]==$top_parentid}
        <div class="panesC">
          {pc:get sql="SELECT * FROM phpcms_daoshi  WHERE catid='$r1[catid]' ORDER BY listorder desc,daoshiid DESC"  return="data"  num="15" cache="3600" page="$_GET[page]"}
             {loop $data $r}
             <li>
               <div class="LiH">
               <img src="{$r[image]}" alt="{$r[name]}"/>
               <h4><span><a href="{APP_PATH}index.php?m=daoshi&c=index&a=show&catid=9&daoshiid={$r[daoshiid]}">预约</a></span></h4>
               <h5>{$r[name]}</h5>
               <p><strong>简介：</strong>{$r[description]}</p>
               </div>
             </li>
             {/loop}
          {/pc}
         <div class="clear"></div>
        </div>
      {/if}
  {/loop}
</div>
<script type="text/javascript" src="{JS_PATH}jquery.tools.min.js"></script>
<script>
$(function() {
    $("ul.tabs").tabs("div.panes > div.panesC");
});
</script>
<script>
$(function() {
    //$("#menu1 li").css('background-color','#f0f0f0');
	if($catid==79){
		$("#menu1 li").css('background-color','#f0f0f0');
		};

});
</script>

</div>
{template "content","footer"}

